package com.ani.mydragon.dto.template;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public class ArticleObjTemplate implements PageObjTemplate{

    //data pullback url
    public String dataUrl;

    //data elements
    public Long objId;

    public String title;

    //Sub elements
    public List<PageObjContainer> subObjects;

    //data fields map
    public Map<String, String> dataFieldsMap;

    public String description;

    public ArticleObjTemplate(String dataUrl, Long objId, String title, String description) {
        this.dataUrl = dataUrl;
        this.objId = objId;
        this.title = title;
        this.subObjects = new ArrayList<PageObjContainer>();
        this.dataFieldsMap = new LinkedHashMap<String, String>();
        this.description = description;
    }

    public ArticleObjTemplate(String dataUrl, Long objId, String title, List<PageObjContainer> subObjects, Map<String, String> dataFieldsMap, String description) {
        this.dataUrl = dataUrl;
        this.objId = objId;
        this.title = title;
        this.subObjects = subObjects;
        this.dataFieldsMap = dataFieldsMap;
        this.description = description;
    }
}
